<%@page import="org.apache.jasper.tagplugins.jstl.core.Out"%>
<%@page import="com.xyz.Film"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>


<%@include file="/jsp/films/include/filmHeader.jsp" %>

<div id="content">
		
	
	<table >
		<tr>
			<th>Логін</th>
			<th>Тип</th>
		</tr>
		
		<c:forEach var="user" items="${usersList}">
		<tr>
			<td>${user.login}</td>
			<td>${user.userType}</td>
		</tr>
		</c:forEach>
	</table>
	
		
	<form method="post" name="form" action="/mainpr/manager_add_new_film">
		<fieldset >
			<legend class="text">Дані для нового користувача</legend>
			
			<p><label for="login">Логін:</label></p>
			<p><input class="forInput" type="text" name="login" size="30" maxlength="20"/></p>
			
			<p><label for="pass">Пароль:</label></p>
			<p><input class="forInput" type="text" name="pass" size="30" maxlength="20"/></p>
			
			<p><label for="userTypeMenu">Пароль:</label></p>
			<select name="userTypeMenu" size="1">
				<option selected="selected" value="admin">Адміністратор</option>
				<option value="manager">Менеджер</option>
				<option value="call_centre">Колл-центр</option>
			</select>
		</fieldset>
		
		<p>
			<input type="submit" name="submitButton" value="Додати"/>
			<input type="reset" name="resetButton" value="Скинути"/><br>
		</p>
	</form>
	
	
</div>


<%@include file="/jsp/includes/footer.jsp" %>